* {
  box-sizing: border-box;
}
.header{
    padding: 20px;
    margin: 25px;
    text-align: center;
}
div h1{
  font-style:oblique;
  font-size:50px;
  color: rgb(25, 95, 68);
}

.row1 {
  float: left;
  width: 25%;

}
.grid-container {
  display: grid;
  grid-template-columns: auto auto auto; 
  grid-template-rows: 400px,400px;
  grid-gap: 1px;
  padding: 1px;
}
img {
  border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
}
#left{
  width: 300px;
  height: 300px;
  background-image: url("/images/京东小狗.jpg");
  background-size: 330px,330px;
}
#right{
  height: 300px;
  flex-grow: 1;
  margin-left: 10px;
  background-color: #ddd;
}
#head{
  display: flex;
}
div h1{
  text-align:center;
  font-size :300%;
  font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;}


  input[type=text] {
    width: 70%;
    box-sizing: border-box;
    border: 2px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
    background-image: url('/images/searchicon.png');
    background-position: 10px 10px; 
    background-repeat: no-repeat;
    padding: 12px 20px 12px 40px;
  }

  .relative{
    /*如果只设置position属性，而不设置top、bottom、left、right,则元素位置不会发生改变*/
    position: relative;
    top: 50px;
    left: 150px;
  }

  input[type=text]:focus {
    border: 3px solid #555;
  }
.button{
  border:white;
  font-size: 16px;
  padding: 12px 28px;
  cursor: pointer;
  display: inline-block;
  color: #555;
}

.title2{
  color: #b60f0f;
  letter-spacing: 0;
  text-shadow: 0px 1px 0px #999, 0px 2px 0px #888, 0px 3px 0px #777, 0px 4px 0px #666, 0px 5px 0px #555, 0px 6px 0px #444, 0px 7px 0px #333, 0px 8px 7px #001135;
}

.foot-left{
  position: relative;
  top:-270px
}
.foot{
  position: relative;
  top:-270px
}
#ul li{
  clear:both;
  width:100px;
  display:inline; /*li {display: inline} 让 li 不再独占一行, 宽度上只会得到必要的而不是占有所在容器的全宽*/
  font-size: larger;
  text-decoration:none;
  position: relative;
  top: 80px;
  left: 150px;
} 

a{
  color: #1b160c;
  text-decoration: none;
}
a:link{
  color: #353535;
  text-decoration: none;
}
a:hover{
  color: blue;
  text-decoration: underline;
}
a:active{
  color: #666666;
  text-decoration: none;
}
